package com.ruoyi.mx.service.impl;

import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.mx.mapper.MxGoodsSpuMapper;
import com.ruoyi.mx.domain.MxGoodsSpu;
import com.ruoyi.mx.service.IMxGoodsSpuService;

import java.util.ArrayList;

/**
 * 美秀商品Service业务层处理
 *
 * @author ruoyi
 * @date 2021-10-28
 */
@Service
public class MxGoodsSpuServiceImpl extends ServiceImpl<MxGoodsSpuMapper, MxGoodsSpu> implements IMxGoodsSpuService {

    @Override
    public ArrayList<MxGoodsSpu> getGoodsListByPidAndId(String pid, String id, Integer pageNum, Integer pageSize) {
        return baseMapper.getGoodsListByPidAndId(pid,id,pageNum,pageSize);
    }

    @Override
    public Integer countGoodsCollections(String gid, String uid) {
        return baseMapper.countGoodsCollections(gid,uid);
    }

    @Override
    public void insertGoodsCollections(String gid, String uid) {
        baseMapper.insertGoodsCollections(gid,uid);
    }

    @Override
    public Integer delGoodsCollections(String gid, String uid) {
        return baseMapper.delGoodsCollections(gid,uid);
    }

    @Override
    public ArrayList<MxGoodsSpu> getGoodsListByName(String name) {
        return baseMapper.getGoodsListByName(name);
    }

    @Override
    public ArrayList<MxGoodsSpu> getGoodsListByNameOrderAsc(String name) {
        return baseMapper.getGoodsListByNameOrderAsc(name);
    }

    @Override
    public ArrayList<MxGoodsSpu> getGoodsListByNameOrderDesc(String name) {
        return baseMapper.getGoodsListByNameOrderDesc(name);
    }

    @Override
    public ArrayList<MxGoodsSpu> getGoodsListByNameOrderSaleAsc(String name) {
        return baseMapper.getGoodsListByNameOrderSaleAsc(name);
    }

    @Override
    public ArrayList<MxGoodsSpu> getGoodsListByNameOrderSaleDesc(String name) {
        return baseMapper.getGoodsListByNameOrderSaleDesc(name);
    }

    @Override
    public ArrayList<MxGoodsSpu> getGoodsListByNameOrderTimeDesc(String name) {
        return baseMapper.getGoodsListByNameOrderTimeDesc(name);
    }
}
